// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'lib-flexible' //适应手机端口布局
import Vue from 'vue'
import App from './App'
import router from './router'
import Vuex from 'Vuex'
// import ElementUI from 'element-ui';
// import 'element-ui/lib/theme-chalk/index.css';
// Vue.use(ElementUI);
import MintUI from 'mint-ui'
import axios from './http/http';
Vue.prototype.$http = axios;
import '../css/all.css'
import 'mint-ui/lib/style.css'
import headerTou from "./components/zujian/header.vue";
import car from "./components/zujian/car.vue";
import cookie from './utils/cookie';

console.log(cookie)
Vue.use(MintUI);
Vue.use(Vuex);
Vue.use(headerTou);
// if (cookie.get('lest')) {

// } else {
//   cookie.set('lest', true)
  //window.location.href = 'http://192.168.1.159/wechat/login?targetUri=wx.jncloud.top:80/#/Details&originUri=wx.jncloud.top:80/#/GivePrivilege'
// }
// router.beforeEach((to, from, next) => {
//   console.log(to.meta.isPhone)
//   console.log(document.title)

//   if (to.meta.isPhone) {
//     let token = cookie.get('Phone')
//     if (token) {
//       next()
//     } else {
//       next({
//         path: '/BindingPhone'
//       })
//     }
//   } else {
//     next()
//   }
// })
var store = new Vuex.Store({
  state: {

  },
  mutations: {

  },
  getters: {
  },
  action: {
    increment(url) {
      // this.$http.get(url).then(
      //   response => {
      //    console.log(response)
      //   },
      //   response => {
      //     // error callback
      //   }
      // );
    }
  }
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
  store
})
